package com.wang.template.json.core;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.wang.template.json.asm.MethodAccess;
@SuppressWarnings("rawtypes")
public class MethodCache {
	private Map<String, MethodAccess> methodCache = new ConcurrentHashMap<String, MethodAccess>();

	private MethodCache() {

	}

	public static MethodCache getInstance() {
		return MethodCache.InnerClass.mc;
	}

	private static class InnerClass {
		private static MethodCache mc = new MethodCache();
	}

	public Map<String, MethodAccess> getMethodCache() {
		return methodCache;
	}

	public void setMethodCache(Map<String, MethodAccess> methodCache) {
		this.methodCache = methodCache;
	}
}
